package com.itcast.java.product.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * sku图片实体类
 *
 * @author xiaobai
 * @date 2021-06-27 19:31:58
 */
@Data
@TableName("pms_sku_images")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "PmsSkuImagesEntity对象", description = "sku图片")
public class PmsSkuImagesEntity implements Serializable{

private static final long serialVersionUID=1L;

        @ApiModelProperty(value = "id")
                @TableId(value = "id", type = IdType.AUTO)
                private Long id;

        @ApiModelProperty(value = "sku_id")
    @TableField("sku_id")
        private Long skuId;

        @ApiModelProperty(value = "图片地址")
    @TableField("img_url")
        private String imgUrl;

        @ApiModelProperty(value = "排序")
    @TableField("img_sort")
        private Integer imgSort;

        @ApiModelProperty(value = "默认图[0 - 不是默认图，1 - 是默认图]")
    @TableField("default_img")
        private Integer defaultImg;

        }